package array
{
	import flash.display.Sprite;
	
	public class TestSplit extends Sprite
	{
		public function TestSplit()
		{
			super();
			testRemove();
		}
		
		public function testRemove():void {
			var arr:Array = [1,1,1];
			
			for(var i:int=0;i<arr.length;i++) {
				trace(arr.length+"............lenght");
				if(arr[i]==1) {
//					arr[i] = null;
					arr.splice(i,1);
					i--;
				}
			}
			
			trace(arr.toString());
		}
	}
}